#include <string>
#include <stack>
#include <utility>

using namespace std;

class Peak
{
public:
	Peak();
	~Peak();

	double getMax();
	pair <int,double> getMaxP();
	int getMatMax();
	double getTopHeight();

	void setNewSlice(int mat, double h);
	void erase(double h);
	double convert(double h, double h2);
private:
	double height;
	stack<pair<int,double> > slices;
};

